<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/reset.css" />
		<link rel="stylesheet" type="text/css" href="css/layui.css" />
		<link rel="stylesheet" type="text/css" href="css/stylew.css" />
	</head>

	<body>
		<div class="container">
			<div class="box">
				<div class="wrap">
					<div class="wrap-w-nav">
						<a href="javascript:;" class="on">全部(8)</a>
						<a href="javascript:;">客厅(8)</a>
						<a href="javascript:;">主卧(8)</a>
						<a href="javascript:;">次卧(8)</a>
						<a href="javascript:;">厨房(8)</a>
						<a href="javascript:;">阳台(8)</a>
						<a href="javascript:;">其他(8)</a>
						<a href="javascript:;">户型图(8)</a>
						<a href="javascript:;">卫生间(8)</a>
					</div>
					<div class="wrap-w-box">
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
						<a href="javascript:;" class="loadimg"><img src="images/pic.jpg" /></a>
					</div>
					<a href="javascript:;" class="loadmore">查看更多</a>
				</div>
			</div>
			<div class="blank10"></div>
			<div class="box">
				<div class="wrap">
					<h2 class="see">看房记录</h3>
					<div class="cordList">
						<div class="listleft">
							<div class="listtop">
								<h3 class="time">带看时间</h3>
								<h3 class="person">带看经纪人</h3>
								<h3 class="number">本房看房人数</h3>
								<h3 class="tel">咨询电话</h3>
								<div class="clearfix"></div>
							</div>
							<ul>
								<li>
									<em class="time">2018-7-12</em>
									<div class="person">
										<img src="images/pic.jpg"/>
										<span>li,li</span>
									</div>
									<span class="number">3</span>
									<span class="tel">0898-36603345</span>
								</li>
								<li>
									<em class="time">2018-7-12</em>
									<div class="person">
										<img src="images/pic.jpg"/>
										<span>li,li</span>
									</div>
									<span class="number">3</span>
									<span class="tel">0898-36603345</span>
								</li>
								<li>
									<em class="time">2018-7-12</em>
									<div class="person">
										<img src="images/pic.jpg"/>
										<span>li,li</span>
									</div>
									<span class="number">3</span>
									<span class="tel">0898-36603345</span>
								</li>
								<li>
									<em class="time">2018-7-12</em>
									<div class="person">
										<img src="images/pic.jpg"/>
										<span>li,li</span>
									</div>
									<span class="number">3</span>
									<span class="tel">0898-36603345</span>
								</li>
							</ul>
							<div class="btnbox">
								<img src="images/left.png"/>
								<img src="images/right.png"/>
							</div>
						</div>
						<div class="listright">
							<h3>近7天带看次数</h3>
							<label class="day"><b>0</b>次</label>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
			</div>
			<div class="blank10"></div>
			<div class="box">
				<div class="wrap infobox">
					<h2 class="see">小区基本信息</h3>
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								占地面积：<span>10000㎡</span>
							</td>
							<td>
								绿化率：<span>20%</span>
							</td>
							<td>
								总楼栋数：<span>5栋</span>
							</td>
						</tr>
						<tr>
							<td>
								建筑年代：<span>2017年</span>
							</td>
							<td>
								车位数：<span>200个</span>
							</td>
							<td>
								总户数：<span>400户</span>
							</td>
						</tr>
						<tr>
							<td>
								物业费用：<span>2.2元/㎡/月</span>
							</td>
							<td>
								容积率：<span>5</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="blank10"></div>
			
		</div>
		<div class="box">
				<div class="wrap">
					<h2 class="see">周边配套及位置</h3>
					<div class="mapbox">
						<div id="l-map"></div>
						<div class="searchmap">
							<ul>
								<li class="on" onclick="openmap(this)"><a href="javascript:;">休闲</a></li>
								<li onclick="openmap(this)"><a href="javascript:;">生活</a></li>
								<li onclick="openmap(this)"><a href="javascript:;">医院</a></li>
								<li onclick="openmap(this)"><a href="javascript:;">学校</a></li>
								<li onclick="openmap(this)"><a href="javascript:;">交通</a></li>
								<div class="clearfix"></div>
							</ul>
							<div class="resultbox">
								<div id="r-result"></div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="blank10"></div>
			<!--预约看房弹出框-->
			<form class="layui-form order-box" action="">
				<h1>预约看房</h1>
				<span>个人基本信息*</span>
				<div class="layui-form-item">
					<label class="layui-form-label">您的称呼：</label>
					<div class="layui-input-inline">
						<input type="text" placeholder="请输入您的称呼" class="layui-input" lay-verify="required"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系方式：</label>
					<div class="layui-input-inline">
						<input type="text" placeholder="请输入联系方式" class="layui-input" lay-verify="required"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">验证码：</label>
					<div class="layui-input-inline" style="width: 126px;">
						<input type="text" placeholder="请输入验证码" class="layui-input" lay-verify="required"/>
					</div>
					<div class="layui-form-mid layui-word-aux">获取验证码</div>
				</div>
				<div class="order-time">
					<p>本次预约看房时间</p>
					<ul>
						<li class="on" onclick="timeC(this)">
							<label>星期一</label>
							<b>19</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期二</label>
							<b>20</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期三</label>
							<b>21</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期四</label>
							<b>22</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期五</label>
							<b>23</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期六</label>
							<b>24</b>
							<em>07月</em>
						</li>
						<li onclick="timeC(this)">
							<label>星期日</label>
							<b>25</b>
							<em>07月</em>
						</li>
					</ul>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">看房时间：</label>
					<div class="layui-input-inline">
						<input type="text" placeholder="请选择具体预约看房时间" class="layui-input"  lay-verify="required"  onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})"/>
					</div>
				</div>
				<div class="layui-form-item" style="margin-bottom: 5px;">
					<label class="layui-form-label">预约要求</label>
				</div>
				<div class="layui-form-item">
					<textarea placeholder="请填写您的约看要求" class="layui-textarea" lay-verify="required"></textarea>
				</div>
				<div class="layui-form-item" style="margin-top: 18px;">
					<button class="layui-btn" lay-submit="" lay-filter="demo1">确认预约</button>
				</div>
			</form>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<!--点击出现大图-->
		<script src="js/layui.js"></script>
		<script type="text/javascript">		
			layui.use(['form', 'layer', 'laydate'], function(){
				  var form = layui.form()
				  ,layer = layui.layer
				  ,laydate = layui.laydate;
				$('.loadimg').on('click', function() {
					layer.open({
						type: 2,
						title: '',
						shadeClose: true,
						shade: 0.3,
						area: ['690px', '560px'], //宽高
						content: 'showMore.html'
					});
				})
			});
			//选择预约看房时间
			function timeC(e){
				$('.order-time ul li').removeClass('on');
				$(e).addClass('on');
			}
		</script>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0WNnyn5gEIws9ingWyjiOCGS"></script>
		<script type="text/javascript">
			// 百度地图API功能
			var map = new BMap.Map("l-map");
			map.centerAndZoom(new BMap.Point(116.3964, 39.9093), 15);
			map.enableScrollWheelZoom();
			var local = new BMap.LocalSearch(map, {
				renderOptions:{map: map, panel:"r-result"},
				pageCapacity:5
			});
			// 复杂的自定义覆盖物
			function ComaplexCustomOverlay(point, text, mouseoverText) {
				this._point = point;
				this._text = text;
				this._overText = mouseoverText;
			}
			ComaplexCustomOverlay.prototype = new BMap.Overlay();
			ComaplexCustomOverlay.prototype.initialize = function(map) {
				this._map = map;
				var div = this._div = document.createElement("div");
				div.style.position = "absolute";
				div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
				div.style.backgroundColor = "#3e82f7";
				div.style.color = "white";
				div.style.height = "18px";
				div.style.padding = "10px 12px";
				div.style.lineHeight = "18px";
				div.style.whiteSpace = "nowrap";
				div.style.MozUserSelect = "none";
				div.style.fontSize = "18px"
				var span = this._span = document.createElement("span");
				div.appendChild(span);
				span.appendChild(document.createTextNode(this._text));
				var that = this;
				var arrow = this._arrow = document.createElement("div");
				arrow.style.background = "url(images/down.png) no-repeat";
				arrow.style.position = "absolute";
				arrow.style.width = "11px";
				arrow.style.height = "10px";
				arrow.style.top = "38px";
				arrow.style.left = "50px";
				arrow.style.overflow = "hidden";
				div.appendChild(arrow);
				map.getPanes().labelPane.appendChild(div);
				return div;
			}
			ComaplexCustomOverlay.prototype.draw = function() {
				var map = this._map;
				var pixel = map.pointToOverlayPixel(this._point);
				this._div.style.left = pixel.x - parseInt(this._arrow.style.left) + "px";
				this._div.style.top = pixel.y - 30 + "px";
			}
			var txt = "银湖海岸城";
			var myComapOverlay = new ComaplexCustomOverlay(new BMap.Point(116.407845, 39.914101), "银湖海岸城");
			map.addOverlay(myComapOverlay);
			//点击选择地方
			$('.searchmap ul li').each(function() {
				if ($(this).hasClass('on')) {
					var txt = $(this).find('a').html();
					local.searchInBounds(txt, map.getBounds());
				}
			});

			function openmap(e) {
				$('.searchmap ul li').removeClass('on');
				$(e).addClass('on');
				var txt = $(e).find('a').html();
				local.searchInBounds(txt, map.getBounds());
			}
		</script>
	</body>
</html>